<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/jsp/admintop.jsp" %>
<%@ include file="/jsp/jscommom.jsp"%>
<%@ include file="/jsp/viewtop.jsp"%>

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>修改职位信息</title>
		<link href="/css/login.css" rel="stylesheet" type="text/css" />
	</head>
	<script type="text/javascript">
	function check(method){
		if(document.all.showDate.value==""){
		alert("对不起,日期不能为空!");
		return;
		}
		if(document.all.createPerson.value==""){
		alert("对不起,创建人不能为空!");
		return;
		}
		if(document.all.address.value==""){
		alert("对不起,现场招聘地点不能为空!");
		return;
		}
	document.all.method.value=method;
	document.forms[0].submit();
	document.all.method.value="";
	}
	
	
	
	
	function del(method){
	if(confirm("确定要删除吗?")){
	document.all.method.value=method;
	document.forms[0].submit();
	document.all.method.value="";
	}
	
	}
	</script>
	<body>
		<html:form action="/system/admin/copormanage/editactivity"
			method="post">
			<html:hidden property="method" />
		    <html:hidden property="activityId"/>
			<div align="center">
				<table width="880" border="0" align="center" cellpadding="0"
				cellspacing="1" class="line1">
					<tr>
						<td class="titlebg" colspan="4">
							修改现场招聘
						</td>
					</tr>
					<tr>
						<td class="mtdtitle1">
							现场招聘时间:
						</td>
						<td  class="mtdtextleft">
							<html:text property="showDate" onclick="datepopup(this)" styleClass="input1"></html:text>
						</td>
						
						<td class="mtdtitle1">
							创建人:
						</td>
						<td class="mtdtextleft">
							<html:text property="createPerson" styleClass="input1"></html:text>
						</td>
					</tr>

					<tr>
						<td class="mtdtitle1">
							现场招聘地点：
						</td>
						<td  class="mtdtextleft">
							<html:text property="address" styleClass="input1"></html:text>
						</td>

						<td class="mtdtitle1">
							状态：
						</td>
						<td class="mtdtextleft">
							<html:select property="status" styleClass="input1">
								<html:option value="0">
									有效
								</html:option>
								<html:option value="1">
									无效
								</html:option>
								
							</html:select>
						</td>
					</tr>

					<tr>
						<td class="mtdtitle1" colspan="4">
<input type="button" class="tbutton1" onclick="check('edit')" value="修改"/>
<input type="reset" class="tbutton1" value="重置"/>
<input type="button" class="tbutton1" onclick="window.close();" value="关闭"/>
<input type="button" class="tbutton1" onclick="del('del')" value="删除"/>
						</td>
					</tr>
				</table>
			</div>
		</html:form>

	</body>
</html>
